home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / module-init-tools.postrm < prev    next >
Text File  |  2008-10-14  |  532b  |  30 lines

  1. #!/bin/sh -e
  2.  
  3. remove_etc_files() {
  4.   rm -f /etc/modules /etc/modprobe.d/arch-aliases
  5.   rmdir --ignore-fail-on-non-empty /etc/modprobe.d/
  6. }
  7.  
  8. case "$1" in
  9.     purge)
  10.     remove_etc_files
  11.     ;;
  12.  
  13.     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  14.     ;;
  15.  
  16.     *)
  17.     echo "$0 called with unknown argument '$1'" >&2
  18.     exit 1
  19.     ;;
  20. esac
  21.  
  22. # Automatically added by dh_installinit
  23. if [ "$1" = "purge" ] ; then
  24.     update-rc.d module-init-tools remove >/dev/null || exit $?
  25. fi
  26. # End automatically added section
  27.  
  28.  
  29. exit 0
  30.